var jpan = {};
jpan.labyrinthObjects || (function($) {

   var _objects = {
      Labyrinth: function() {
         this.gameHeight= 300;
         this.gameWidth= 600;
         this.gameSizeRatio= 1/2;
         this.cellsX= 40;
         this.cellsY= 20;
         this.cellWidth= 30;
         this.cellHeight= 30;
         this.wallWidth = 2;
         this.notValid= "#000";
         this.gameBackGroundColor= "#900";
         this.gridLineColor= "#333";
         this.floorColor = "#900";
         this.wallColor = "#555";
         this.borderWallColor = "#000";
         this.startWallColor = "#0F0";
         this.endWallColor = "#070";
         this.visitedColor = "#FFFF00";
         this.playerColor = "#FF4400";
         this.beastColor = "#0044FF";
         this.grid = null;
         this.initGrid = function()
         {
            this.grid = new Array(this.cellsX);
            for (i=0; i<this.cellsX; i++)
            {
               this.grid[i]= new Array(this.cellsY);
            }
         }
      },
      Cell: function(coordinates) {
         this.x = -1;
         this.y = -1;
         this.n = null;
         this.e = null;
         this.s = null;
         this.w = null;
         this.visited = false;
         this.partOfTheMaze = false;
         if (coordinates) {
            if (coordinates.x) {
               this.x = coordinates.x;
            }
            if (coordinates.y) {
               this.y = coordinates.y;
            }
         }
      },
      Wall: function(cell1,cell2) {
         this.cell1 = cell1;
         this.cell2 = cell2;
      },
      BorderWall: function() {
      },
      Start: function() {
      },
      End: function() {
      },
      Beast: function() {
         this.x = -1;
         this.y = -1;
      }
   };

   jpan.labyrinthObjects = _objects;
}(jQuery));

